class Customer < ActiveRecord::Base

  def self.search(search)
  search_condition = "%" + search + "%"
  find(:all, :conditions => ['first_name LIKE ? OR last_name LIKE ? OR studentid LIKE ? OR email LIKE ? OR phone LIKE ?', search_condition, search_condition, search_condition, search_condition, search_condition])
end

end

